package controlador;

import processing.core.PApplet;
import processing.serial.*;


/**
 *
 * @author Fabian
 */
public class SerialPortController {

    private Serial myPort;  // Create object from Serial class
    private int val;        // Data received from the serial port

    public SerialPortController(PApplet parent,Serial myPort, int val) {
        String portName = Serial.list()[0];
        this.myPort = new Serial(parent, portName, 9600);
    }
}
